import request from "@/utils/request";

//获取物料列表数据
export const reqMaterialList = (parameter) => {
    return request({
        url:"/materialSchedules/pages",
        method:"get",
        params:parameter
    })
}

//物料表数据导出
export const reqMaterialExport = (workShop) => {
    return request({
        url:"/materialSchedules/materialScheduleExcel?workShop=" + workShop,
        method:"get",
        responseType:"blob"
    })
}

//保存或更新物料表数据
export const reqSaveOrUpdateAll = (parameter) => {
    return request({
        url:"/materialSchedules/saveOrUpdateAll",
        method:"post",
        data:parameter
    })
}

//删除物料表数据
export const reqDelSchedules = (parameter) => {
    return request({
        url:"/materialSchedules/ids",
        method:"delete",
        params:parameter
    })
}